using System;
using System.Drawing;
using System.Collections;
using System.Collections.Specialized;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.IO;
using System.Web.Security;

namespace webapp4U.UI
{
    [ParseChildren(true)]
    public class LinkButton2 : System.Web.UI.WebControls.LinkButton
    {
        private string _resourceName;
        private string _cssClass="";
   
        public string ResourceName
        {
            get { return _resourceName; }
            set { _resourceName = value; }
        }

        public string StyleClass
        {
            get { return _cssClass; }
            set { _cssClass = value; }
        }

        protected override void CreateChildControls()
        {
            //EnableViewState = false;

            if (StyleClass == "")
                this.CssClass = "LinkButton";
            else
                this.CssClass = StyleClass;

            if (ResourceName != "")
            {
                this.Text = ResourceManager.GetString(ResourceName);
            }
        }
     
    }
}
